package vip.meet.common;

public class Results {

    public static Result<Void> ofFail(String message){
        return Result.<Void>builder().success(false).message(message).build();
    }

    public static <T> Result<T> ofSuccess(T data){
        return Result.<T>builder().success(true).message("成功").data(data).build();
    }

    public static Result<Void> ofSuccess(){
        return Result.<Void>builder().success(true).message("成功").build();
    }
}
